From 42242d76206e6297a5e8d660d2bce25a697763a1 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 23 Feb 2011 16:42:42 +0000 Subject: [PATCH] Followup r81534, use addQuotes() instead --- includes/installer/PostgresUpdater.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index c3875754ae..b40767affd 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -397,7 +397,8 @@ END; protected function renameTable( $old, $new ) { if ( $this->db->tableExists( $old ) ) { $this->output( "Renaming table $old to $new\n" ); - $this->db->query( "ALTER TABLE '$old' RENAME TO $new" ); + $old = $this->db->addQuotes( $old ); + $this->db->query( "ALTER TABLE $old RENAME TO $new" ); } } -- 2.20.1